package edu.nf.ch06.exception;

/**
 * @author wangl
 * @date 2025/5/13
 * 项目最顶层的自定义异常类
 */
public class GlobalException extends RuntimeException {

    /**
     * 自定义错误码
     */
    private Integer errorCode;

    public GlobalException(Integer errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }

    public Integer getErrorCode() {
        return errorCode;
    }
}